package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据回显值对象 subinfo
 * 
 * @author yaozh
 * @date 2024-03-14
 */
public class Subinfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键，自动递增 */
    private Long id;

    /** 组件ID */
    @Excel(name = "设备属性回显定义ID",width = 18)
    private Long subid;

    @Excel(name = "设备属性回显定义名称",width = 20)
    private String subname;

    /** 值 */
    @Excel(name = "设备属性回显数值")
    private String value;

    /** 文本 */
    @Excel(name = "设备属性回显数值对应的显示名称（中文）",width = 33)
    private String text;

    /** 文本（英文） */
    @Excel(name = "设备属性回显数值对应的显示名称（英文）",width = 33)
    private String textEN;

    /** 1数值型，2条件型 */
    @Excel(name = "设备属性回显数值定义类型，1数值型，2条件型",width = 40)
    private String valueType;

    /** 最小值 */
    @Excel(name = "最小值")
    private String valueMin;

    /** 最大值 */
    @Excel(name = "最大值")
    private String valueMax;

    /** -1条件或，-2条件与 */
    @Excel(name = "-1条件或，-2条件与",width = 18)
    private String andOr;

    /** 图片url地址 */
    @Excel(name = "图片url地址")
    private String url;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSubid(Long subid) 
    {
        this.subid = subid;
    }

    public Long getSubid() 
    {
        return subid;
    }

    public String getSubname() {
        return subname;
    }

    public void setSubname(String subname) {
        this.subname = subname;
    }
    public void setValueType(String valueType) 
    {
        this.valueType = valueType;
    }

    public String getValueType() 
    {
        return valueType;
    }
    public void setValue(String value) 
    {
        this.value = value;
    }

    public String getValue() 
    {
        return value;
    }
    public void setValueMin(String valueMin) 
    {
        this.valueMin = valueMin;
    }

    public String getValueMin() 
    {
        return valueMin;
    }
    public void setValueMax(String valueMax) 
    {
        this.valueMax = valueMax;
    }

    public String getValueMax() 
    {
        return valueMax;
    }
    public void setAndOr(String andOr) 
    {
        this.andOr = andOr;
    }

    public String getAndOr() 
    {
        return andOr;
    }
    public void setText(String text) 
    {
        this.text = text;
    }

    public String getText() 
    {
        return text;
    }
    public void setTextEN(String textEN) 
    {
        this.textEN = textEN;
    }

    public String getTextEN() 
    {
        return textEN;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("subid", getSubid())
            .append("valueType", getValueType())
            .append("value", getValue())
            .append("valueMin", getValueMin())
            .append("valueMax", getValueMax())
            .append("andOr", getAndOr())
            .append("text", getText())
            .append("textEN", getTextEN())
            .append("url", getUrl())
            .toString();
    }
}
